<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        /*
            在页面中打印一个对象时，实际上时输出对象的toString()方法的返回值
        */
        var per = new Object();
        console.log(per);
        //可以修改原型中的toString()
        per.toString = function () {
            return "别看了你不会";
        };
        console.log(per.toString());

    //    var result=per.toString();
    //    console.log(result);

    </script>
</head>

<body>

</body>

</html>